﻿using System;
using System.Data;
using System.ServiceModel;
using Tencent.OA.ACM.Entity;
namespace Tencent.OA.ACM.Service.Interface{
	/// <summary>
	/// 接口层Relationship
	/// </summary>
	[ServiceContract]
    public interface IRelationshipService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		[OperationContract]
		bool Exists(int ID);
		/// <summary>
		/// 增加一条数据
		/// </summary>
		[OperationContract]
		int  Add(Relationship model);
		/// <summary>
		/// 更新一条数据
		/// </summary>
		[OperationContract]
		bool Update(Relationship model);
		/// <summary>
		/// 删除一条数据
		/// </summary>
		[OperationContract]
		bool Delete(int ID);
		[OperationContract]
		bool DeleteList(string idlist );
		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		[OperationContract]
		Relationship GetModel(int ID);
		/// <summary>
		/// 获得数据列表
		/// </summary>
		[OperationContract]
		DataSet GetList(string strWhere);
		/// <summary>
		/// 获得前几行数据
		/// </summary>
		[OperationContract]
        DataSet GetListOrder(int Top, string strWhere, string filedOrder);
		/// <summary>
		/// 根据分页获得数据列表
		/// </summary>
		//[OperationContract]
		//DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  成员方法
	} 
}